package com.example.myFirstWebmagic.dailyAirReport.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 
 * ClassName: DailyAirQualityReportLog 
 * @Description: 记录爬虫爬取成功还是失败的日志
 * @author xiongyao
 * @date 2017年3月5日
 */
@Entity
public class EnDailyAirQualityReportLog implements Serializable{

	public static final String SUCCESS_STATUS="SUCCESS";
	public static final String FAILD_STATUS="FAILD";
	public static final String EXECUTING_STATUS="EXECUTING";
	
	/**
	 * @Fields serialVersionUID : TODO
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@Id
	private DailyAirQualityReportLogPK id;
	
	
	/**
	 * 爬取成功还是失败
	 */
	@Column(nullable = false)
	private String status;
	
	@Column(nullable = false)
	private String exception;
	
	

	public DailyAirQualityReportLogPK getId() {
		return id;
	}

	public void setId(DailyAirQualityReportLogPK id) {
		this.id = id;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public EnDailyAirQualityReportLog(DailyAirQualityReportLogPK id, String status,String exception) {
		this.id=id;
		this.status = status;
		this.exception=exception;
	}
	
	public EnDailyAirQualityReportLog() {
		
	}

	public String getException() {
		return exception;
	}

	public void setException(String exception) {
		this.exception = exception;
	}
	
	
}
